package only.my.railgunys.weapon;

import only.my.railgunys.bean.Character;
import only.my.railgunys.bean.Weapon;

public class Harpoon extends Weapon {
    public Harpoon(int refineLevel){
        this.atk = 510.0;
        this.subStatValue = 45.9;
        this.refineLevel = refineLevel;
        this.name = "渔获";
        this.code = 5;
    }

    @Override
    public Character subStatEnhance(Character character) {
        character.addRecharge(subStatValue);
        return character;
    }

    @Override
    public Character specialAbility(Character character) {
        double refineIncrease = 1 + (refineLevel - 1) * 0.25;
        character.addIncrease(16* refineIncrease);
        character.addCritRate(6* refineIncrease);
        return character;
    }
}
